{% extends "news/base.html" %}
{% block title %} news login {% endblock %}
{% block content %}
<h1>Login</h1>
{% if message %}
<div color="{{ message.warn_color }}">{{ message.msg }}</div>
{% endif %}
<form action="" method="post">
  {% csrf_token %}
  {{ form.as_p }}
  <input type="submit" value="OK" />
</form>
<a href="{% url 'news:uploadfile' %}">upload file</a>
<a href="{% url 'news:login' %}">login</a>
{% endblock %}
  